package com.ipzoe.act.service;

import com.ipzoe.act.domain.Activity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ipzoe.act.model.SignedActivityBO;
import com.ipzoe.mem.domain.Member;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * 活动Service接口
 *
 * @author eric
 * @date 2020-08-17
 */
public interface IActivityService extends IService<Activity> {

    boolean removeByIds(Collection<? extends Serializable> idList, String updateBy);

    /**
     * 报名
     *
     * @param activityId
     * @param name
     * @param nickname
     * @param phone
     * @param email
     */
    void signUp(Long activityId, String name, String nickname, String phone, String email, Member member);

    /**
     * 查询报名的活动
     *
     * @param memberId
     * @param signStatus
     * @param activityStatus
     * @return
     */
    List<SignedActivityBO> listSignedActivity(Long memberId, Integer signStatus, Integer activityStatus);
}
